From b6c8c2438305696c308e728988e8b6d4e689d315 Mon Sep 17 00:00:00 2001 From: "kaf24@labyrinth.cl.cam.ac.uk" Date: Wed, 19 Feb 2003 17:56:28 +0000 Subject: [PATCH] bitkeeper revision 1.69 (3e53c54cEL529pxHNKFYKzvzVGQhXw) schedule.c: Fix so we don't schedule idle domain unnecessarily. --- xen-2.4.16/common/schedule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen-2.4.16/common/schedule.c b/xen-2.4.16/common/schedule.c index d3ef9a88fc..787b43d900 100644 --- a/xen-2.4.16/common/schedule.c +++ b/xen-2.4.16/common/schedule.c @@ -26,6 +26,7 @@ #include #include #include +#include #undef SCHEDULER_TRACE #ifdef SCHEDULER_TRACE @@ -224,7 +225,7 @@ asmlinkage void schedule(void) spin_lock_irq(&schedule_data[this_cpu].lock); - /*ASSERT(!in_interrupt());*/ + ASSERT(!in_interrupt()); ASSERT(__task_on_runqueue(prev)); __move_last_runqueue(prev); @@ -247,7 +248,7 @@ asmlinkage void schedule(void) list_for_each(tmp, &schedule_data[smp_processor_id()].runqueue) { p = list_entry(tmp, struct task_struct, run_list); next = p; - break; + if ( !is_idle_task(next) ) break; } prev->has_cpu = 0; -- 2.30.2